gnttab: clean up gnttab_set_version()
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2015 08:30:12 +0000 (10:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2015 08:30:12 +0000 (10:30 +0200)
commitcf2fab9ab24cf59ecf6c0a0141eef61b856cfbaf
treec0388c97f84fc62439857aa24acf9e8faf0a5679
parent3459050e0443fa1179b39a1d85668e8c8933f27e
gnttab: clean up gnttab_set_version()

- drop pointless nr_grant_entries() check from loop over reserved
  entries (adding suitable BUILD_BUG_ON()s to validate that)
- adjust types
- rename d to currd
- formatting

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/grant_table.c